#ifndef FPGA_H
#define FPGA_H

#include <QDebug>

class Fpga : public QObject
{
    Q_OBJECT

public:
    static Fpga* getInstance();

    /* 读取当前Fpga版本 */
    QString& readFpgaPluginVersion();
    void writeRegister(uint32_t addr, uint32_t value);
    void writeRegister(size_t startAddr, const uint32_t *valueArray, int length);
    void writeRegister(size_t addr, uint32_t value, int startBit, int endBit);

    uint32_t readRegister(uint32_t addr);

private:
    Fpga();
};

#endif // FPGA_H
